<?php if ($leave_record > 0) { ?>
	<ul class="nav nav-tabs">
		<?php
		if ($this->uri->segment(3) === "annual" OR !$this->uri->segment(3)) {
			?>
			<li class="active"><?php echo anchor('record/show_record/annual', 'Annual'); ?></li>
			<li><?php echo anchor('record/show_record/catchup', 'Catch Up'); ?></li>
			<li class="dropdown">
				<?php echo anchor('/page.html', 'Pending [<span class="note_num">' . $this->session->userdata('num_padding') . '</span>]<b class="caret"></b>', 'class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#"'); ?>
				<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
					<li><?php echo anchor("record/show_record/pending", 'Pending [<span class="note_num">' . $this->session->userdata('num_padding') . '</span>]'); ?></li>
					<li><?php echo anchor('record/show_record/approval', 'Approval'); ?></li>
				</ul>
			</li>
			<?php
		} else if ($this->uri->segment(3) === "catchup") {
			?>
			<li><?php echo anchor('record/show_record/annual', 'Annual'); ?></li>
			<li class="active"><?php echo anchor('record/show_record/catchup', 'catch Up'); ?></li>
			<li class="dropdown">
				<?php echo anchor('/page.html', 'Pending [<span class="note_num">' . $this->session->userdata('num_padding') . '</span>]<b class="caret"></b>', 'class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#"'); ?>
				<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
					<li><?php echo anchor("record/show_record/pending", 'Pending [<span class="note_num">' . $this->session->userdata('num_padding') . '</span>]'); ?></li>
					<li><?php echo anchor('record/show_record/approval', 'Approval'); ?></li>
				</ul>
			</li>
			<?php
		} else {
			?>
			<li><?php echo anchor('record/show_record/annual', 'Annual'); ?></li>
			<li><?php echo anchor('record/show_record/catchup', 'catch Up'); ?></li>
			<li class="dropdown active">
				<?php echo anchor('/page.html', 'Pending [<span class="note_num">' . $this->session->userdata('num_padding') . '</span>]<b class="caret"></b>', 'class="dropdown-toggle" id="dLabel" role="button" data-toggle="dropdown" data-target="#"'); ?>
				<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
					<li><?php echo anchor("record/show_record/pending", 'Pending [<span class="note_num">' . $this->session->userdata('num_padding') . '</span>]'); ?></li>
					<li><?php echo anchor('record/show_record/approval', 'Approval'); ?></li>
				</ul>
			</li>
			<?php
		}
		?>
	</ul>
<?php } ?>
